# 基于java镜像创建新镜像
FROM  java:8

# 作者
MAINTAINER maojinhui

EXPOSE 8000

COPY eladmin-system/target/eladmin-system-2.5.jar /home/docker/app.jar

VOLUME "/home/eladmin/file/"

#COPY /home/docker/eladmin-system-2.5.jar /home/docker/app.jar

# 运行jar包
#ENTRYPOINT [ "java","-jar","/home/docker/app.jar" ]

ENTRYPOINT ["nohup", "java", "-jar", "/home/docker/app.jar", "--spring.profiles.active=prod", ">","nohup.out" ,"2>&1", "&"]
